package routes

import (
	"github.com/gin-gonic/gin"
	"jjqzplucky.site/sz-core/pkg/middlewares"
)

func RegisterRoutes(r *gin.Engine) {
	r.Use(
		middlewares.ResponseMiddleware(),
		middlewares.CustomRecovery(),
		middlewares.JwtAuthMiddleware(),
	)
	RegisterAuthRoutes(r)        // 注册认证路由
	RegisterDoctorRoutes(r)      //注册医生管理路由
	RegisterUploadRoutes(r)      //minio上传路由
	RegisterMedicalDeptRoutes(r) //注册科室路由
	RegisterMedicalDeptSubRoutes(r)
}
